
component accessors="true" output="false" extends="AbsDelegate"
{

	property name="SkinFactory" type="it.millemultimedia.easyBlog.factory.SkinFactory";

	public it.millemultimedia.easyBlog.delegate.SkinDelegate function init( required Any dataObject ){
		
		variables.dataObject = arguments.dataObject;
		
		return this;
	}
	
	public it.millemultimedia.easyBlog.validator.SkinValidator function getValidator(){
		
		return getSkinFactory().getValidator();
	}
	
	public it.millemultimedia.easyBlog.model.Skin function createInstance(){
		
		return getSkinFactory().createInstance();
	}

	public void function create( required Any Skin ){
		
		variables.dataObject.create( argumentCollection=arguments );
		
	}

	public void function update( required Any Skin ){
		
		variables.dataObject.update( argumentCollection=arguments );
		
	}

	public it.millemultimedia.easyBlog.model.Skin function read( required Any Skin ){
	
		var list = "";
		var Skins = variables.dataObject.read( arguments.Skin );
		
		Skin = getSkinFactory().get( Skins );
		
		
		return Skin;
		
	}

	public void function delete( required Any Skin ){
		
		variables.dataObject.delete( argumentCollection=arguments );
		
	}

	public it.millemultimedia.easyBlog.model.Skin[] function list( required Any Skin, Numeric start=0, Numeric count=0 ){
	
		var list = "";
		var Skins = variables.dataObject.list( arguments.Skin );
		
		list = getSkinFactory().list( Skins, arguments.start, arguments.count );
		
		
		return list;
		
	}

}


